Indicates whether the value passed is numeric.
Syntax |
|---|
|
result = IsNumeric( arg ) |
Parameters |
||
|---|---|---|
|
arg |
Variable, value, or object whose data type is being investigated. |
|
Return Value |
||
|---|---|---|
|
Result |
||
Notes
If the value passed to IsNumeric is a String that contains the string version of a number, then IsNumeric returns True. For example,
IsNumeric("3.1416")
returns True.
One usage of IsNumeric is to determine whether the user entered a string that can be converted to a number. For example,
IsNumeric( "1234.65e+10" ) //returns True
IsNumeric( "567e-10.5" ) //returns False
IsNumeric( "567e-10.5" ) //returns False
See Also
Boolean, Byte, Color, Double, Int8, Int16, Int32, Int64, Single, String, UInt8, UInt16, UInt32, UInt64, Variant data types.